﻿<%@ Page Title="" Language="C#" MasterPageFile="~/cms/cms.master" AutoEventWireup="true" CodeFile="AddNewPromotionImage.aspx.cs" Inherits="cms_AddNewPromotionImage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .top-heading
        {
            border-bottom: dotted 1px #b5b5b5;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 22px;
            color: #1f81d5;
            line-height: 0px;
            padding-top: 15px;
            padding-bottom: 15px;
            clear: both;
        }
        
        .maxwidth
        {
            max-width:400px;
        }
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentMain" Runat="Server">
    <h1 class="top-heading">Add or edit promotion</h1>
    <div style="padding:20px; ">
        <div>Type:<asp:DropDownList ID="ddlType" runat="server" DataTextField="TypeName" 
                DataValueField="TypeId">
            </asp:DropDownList>
        </div>
        <div>
            Image:<br /><asp:Image ID="ImagePromo" runat="server" /><br /><hr />
            <asp:FileUpload ID="FileUpload1" runat="server" /> 
            <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="Note (*): Image Size (Width: 960px - 980px, Height: 340 - 360px)"></asp:Label>
        </div>

        <div>
            <table>
                <tr>
                    <td>Description Promotion:</td>
                    <td><asp:TextBox ID="txtDescription" CssClass="maxwidth" runat="server" Height="100px" 
                TextMode="MultiLine" Width="400px"></asp:TextBox></td>
                </tr>
            </table>
            
        </div>
        <div>
            <asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" />
            <asp:Button ID="Button2"
                runat="server" Text="Cancel" PostBackUrl="~/cms/Promotion.aspx" />
        </div>
    </div>
</asp:Content>

